#pragma once
#include "ogr_spatialref.h"
#include "ogr_srs_api.h"

enum GeoSystems{
	GS_UTM,
	GS_EPSG28992,
	GS_EPSG4326,
	GS_EPSG3857,
	GS_MERCATOR,
};

class CGeoLoc
{
//attributes
public:
	double		m_xOffset;
	double      m_yOffset;
	double		m_orientation;

	GeoSystems  m_geoSystem;
	double		m_geoX;
	double		m_geoY;
	double		m_geoZ;

	int			m_geoZone;
	int 		m_geoNorth;

private:
	OGRSpatialReference m_offsetMercator;
	OGRSpatialReference m_spatialRef;

public:
	CGeoLoc(GeoSystems sys, double x, double y, double z, double or, int zone = 0, bool north = true);
	CGeoLoc(void) {};
	~CGeoLoc(void);

	void ChangeSystem(GeoSystems sys);

	void SetOffset(CGeoLoc *orgpos);
	void ConvertDeltaToLatLon(int nr, double *x, double *y);

//	void ChangePos(CGeoLoc *orgpos); 
};


